package cn.itlaobing.springbootdemo.service;

import cn.itlaobing.springbootdemo.entity.Student;
import cn.itlaobing.springbootdemo.entity.SystemAccount;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface SystemAccountService {
    public SystemAccount authentication(String account,String password);
    public SystemAccount save(String account, String password, Student student);

    public SystemAccount chagePassword(String account,String newPassword);

    public void updatePicHead(SystemAccount systemAccount);


    public Page<SystemAccount> findByStudentNameOrAccount(String nameOrAccount, Pageable pageable);

}
